package com.fowo.api.model.funds.pay.order.info;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.*;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/**
 * 请款信息 预览导入辅助模型(全字段为文本类型)
 * @author yl_ls
 */
@Getter
@Setter
public class FundsPayOrderInfoImportPo {

  /** 所属请款单 */
  @ExcelProperty("所属请款单")
  @Size(max = 50, message = "所属请款单长度不能超过50")
  private String parentIdAssociatedOrder;

  @ExcelIgnore
  @Schema(title = "所属请款单")
  private String parentId;

  /** 采购单号 */
  @ExcelProperty("采购单号")
  @Size(max = 50, message = "采购单号长度不能超过50")
  private String purchaseOrderCode;

  /** 采购金额 */
  @ExcelProperty("采购金额")
  @DecimalString(message = "采购金额小数格式不正确", label = "采购金额")
  private String purchaseMoney;

  /** 到货金额 */
  @ExcelProperty("到货金额")
  @DecimalString(message = "到货金额小数格式不正确", label = "到货金额")
  private String aogMoney;

  /** 应付金额 */
  @ExcelProperty("应付金额")
  @DecimalString(message = "应付金额小数格式不正确", label = "应付金额")
  private String amountPayable;

  /** 实付金额 */
  @ExcelProperty("实付金额")
  @DecimalString(message = "实付金额小数格式不正确", label = "实付金额")
  private String actuallyPaid;

  /** 本次折扣 */
  @ExcelProperty("本次折扣")
  @DecimalString(message = "本次折扣小数格式不正确", label = "本次折扣")
  private String thisDiscount;

  /** 费用名称 */
  @ExcelProperty("费用名称")
  @Size(max = 50, message = "费用名称长度不能超过50")
  private String feeName;

  /** 费用金额 */
  @ExcelProperty("费用金额")
  @DecimalString(message = "费用金额小数格式不正确", label = "费用金额")
  private String feeMoney;

  /** 本次申请 */
  @ExcelProperty("本次申请")
  @DecimalString(message = "本次申请小数格式不正确", label = "本次申请")
  private String thisApplication;

  /** 折合 */
  @ExcelProperty("折合")
  @DecimalString(message = "折合小数格式不正确", label = "折合")
  private String convertInto;
}
